{include file="../../../application/admin/view/public/head" /}
<style>
    table {
        table-layout: fixed;
    }


    td {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .layui-field-box .layui-btn{
        margin: 3px 5px;
    }
</style>
<div class="page-container p10">

    <div class="my-toolbar-box">

        <div class="left mb10">
            <fieldset class="layui-elem-field">
                <legend>直播类型管理</legend>

            </fieldset>
        </div>

    </div>


    <form class="layui-form " method="post" id="pageListForm">
        <table class="layui-table" lay-size="sm">
            <thead>
            <tr>
                <th width="40">序号</th>
                <th >名称</th>
                <th >别名</th>
                <th width="80">排序</th>
                <th width="180">是否展示</th>
<!--                <th width="200">操作</th>-->
            </tr>
            </thead>

            {volist name="list" id="vo"}
            <tr>
                <td >{$vo.id}</td>
                <td><a class="layui-badge-rim j-iframe" data-full="1" data-href="{:url('data?type_id='.$vo['id'])}" href="javascript:;" data-title="{$vo.name}分类下直播列表">{$vo.name}</a></td>
                <td>
                    <a  data-title="设置 {$vo.name} 分类别名" data-href="{:url('index/select')}?tab=zhibo_type&col=alias_name&tpl=select_input&val={$vo.alias_name}&url=zhibo/field&ids={$vo.id}" data-width="270" data-height="100" class=" j-select"><span class="layui-badge layui-bg-blue">{$vo.alias_name|default='未设置'}</span></a>
                </td>
                <td>
                <a data-href="{:url('index/select')}?tab=zhibo_type&col=sort&tpl=select_sort&val={$vo.sort}&url=zhibo/field&ids={$vo.id}" data-width="270" data-height="100" class=" j-select"><span class="layui-badge layui-bg-orange">{$vo.sort}</span></a>
            </td>
                <td>
                    <a class="layui-badge-rim j-ajax" confirm="确认{$vo.is_show==1?'隐藏':'显示'}吗？" data-href="{:url('zhibo/changeshow')}?setState={$vo.is_show==1?0:1}&id={$vo.id}" href="javascript:void(0);"> {$vo.is_show==1?'显示':'<span style="color:red;">隐藏</span>'}</a>
                    <a class="layui-badge-rim j-iframe" data-full="1" data-href="{:url('sort?type_id='.$vo['id'])}" href="javascript:;" title="排序设置">二级分类</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div id="pages" class="center"></div>
    </form>
</div>




{include file="../../../application/admin/view/public/foot" /}

<script type="text/javascript">
    var curUrl="{:url('feedback/index',$param)}";
    layui.use(['laypage', 'layer','form'], function() {
        var laypage = layui.laypage
                , layer = layui.layer,
                form = layui.form;

    });

</script>
</body>
</html>